home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mlib / include / mfonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.2 KB  |  35 lines

  1.  
  2. #ifndef __MFONTS_H
  3. #define __MFONTS_H
  4.  
  5. #define NOL              256      // Number of letters
  6. #define ID_STR_LEN        16
  7. #define ID_STRING           "Bitmap font file\x0"
  8.  
  9. #define MFONT_ID           0x010C
  10.  
  11. class MFont : public Atom {
  12. protected:
  13.     BYTE                     Filename [MAX_FILE_NAME];
  14. public:
  15.     BYTE                     length;
  16.     BYTE                     width;
  17. public:
  18.                      MFont (void);
  19.     virtual int              PrintCharacter (int x,int y,int ascii);
  20.     virtual int              PrintString (int x,int y,char *string);
  21.     virtual void             LoadDirect (int fp);
  22.     virtual void             SaveDirect (int fp);
  23.     virtual void             ActivatePoint (WORD letter, WORD xpos, WORD ypos);
  24.     virtual void             DeactivatePoint (WORD letter, WORD xpos, WORD ypos);
  25.     virtual inline classType isA (void) {return (MFONT_ID);};
  26.     virtual void             TogglePoint (WORD letter, WORD xpos, WORD ypos);
  27.     virtual BOOL             ReadPoint (WORD letter, WORD xpos, WORD ypos);
  28.     virtual void             Resize (WORD len, WORD wid);
  29.     inline LPSTR             GetFilename (void) { return (Filename);};
  30.                     ~MFont (void);
  31. };
  32. typedef MFont FONT;
  33.  
  34. #endif
  35.